package lab01;

public class Test10 {
    public static void main(String[] args) {
        int m='A';
        int s=0;
        for (int i=0;i<4;i++){
            s+=i;
            for (int j=0;j<10;j++){
                System.out.print(" ");
                if (j==9-i)
                for (int n=0;n<i+1;n++) {
                    System.out.print(" "+(char)(m+s+n));
                    }

            }

            System.out.println();
        }
        for (int i=4;i>0;i--){
            s+=i;
            if (i<4) s=s+1;
            for (int j=0;j<10;j++){
                System.out.print(" ");
                if (j==10-i)
                    for (int n=0;n<i;n++) {
                        System.out.print(" "+(char)(m+s+n));
                    }

            }

            System.out.println();
        }
    }
}
